<template>
  <p class="demo">
    {{ msg }}
  </p>
</template>

<script>
import axios from "axios";
axios.defaults.baseURL = "http://192.168.0.114:8080";
export default {
  data() {
    return {
      msg: "Author"
    };
  },
  mounted() {
    let self = this;
    //axios.get("/amend/2/defect").then(response => {
      //self.$data.msg = response.data.rerporter;
   // });
    axios
      .post("/models", {
        condition: "Fred",
        select: "Flintstone",
        initParam: "1",
        branch: "1",
        content: "1"
      })
      .then(function(response) {
        console.log(response);
      })
      .catch(function(error) {
        console.log(error);
      });
  }
};
</script>
